package objects;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Monkey on 2017/3/20.
 * 员工信息
 */

public class User implements Parcelable {

    private String YGGH;//用户工号
    private String YGXM;//用户姓名
    private String YGDM;//用户代码

    protected User(Parcel in) {
        YGGH = in.readString();
        YGXM = in.readString();
        YGDM = in.readString();
    }

    public static final Creator<User> CREATOR = new Creator<User>() {
        @Override
        public User createFromParcel(Parcel in) {
            return new User(in);
        }

        @Override
        public User[] newArray(int size) {
            return new User[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(YGGH);
        parcel.writeString(YGXM);
        parcel.writeString(YGDM);
    }

    public String getYGGH() {
        return YGGH;
    }

    public void setYGGH(String YGGH) {
        this.YGGH = YGGH;
    }

    public String getYGXM() {
        return YGXM;
    }

    public void setYGXM(String YGXM) {
        this.YGXM = YGXM;
    }

    public String getYGDM() {
        return YGDM;
    }

    public void setYGDM(String YGDM) {
        this.YGDM = YGDM;
    }
}
